package scau.redi.social_platform.service;

import scau.redi.social_platform.domain.pojo.UserInfo;
import scau.redi.social_platform.domain.vo.UserWithRoleVO;

/**
 * @Author: Redi
 * @Date: 2022/5/8 16:54
 * @Description:
 */
public interface LoginService {

    UserInfo findByUsername(String username);

    UserInfo findByUserId(int userId);

    UserInfo loginByUsernameAndPassword(String username, String password);

    UserWithRoleVO findUserWithRole(String username);

    int registerByUsernameAndPassword(UserInfo userInfo);




}
